import request from '@/utils/request'

export function getInfo(token) {
  console.log(request)
}

export function login(formdata) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data: formdata
  })
}
export function getUserProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
export function logout() {

}
